package ferp.center.server.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Version;

/**
 * User: olegs
 * Date: 10/05/2014 16:41
 */

@Entity
public class PollResult
{
  public PollResult() {}
  public PollResult(String answer)
  {
    //this.poll = KeyFactory.createKey(PollResult.class.getSimpleName(), Polls.ID);
    this.answer = answer;
  }

  public void setCount(long count) {this.count = count;}
  public long getCount() {return count;}

  @Id
  private String answer;
  private long count;

  @Version
  private long version;
}
